﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PRE.Reports
{
    using DevExpress.XtraPrinting;
    using DevExpress.XtraEditors;
    using DevExpress.XtraReports.UI;
    public partial class frmbase : Form
    {
        public frmbase()
        {
            InitializeComponent();
        }

        private void frmbase_Load(object sender, EventArgs e)
        {

        }

        public void SetReport(XtraReport report)
        {
            printControl1.PrintingSystem = report.PrintingSystem;
            report.CreateDocument();
            printControl1.UpdatePageView();
        }
    }
}
